#ifndef __THREAD_UTILS_HPP__
#define __THREAD_UTILS_HPP__

#if defined(WIN32)
#include <Windows.h>
#else 
#include <pthread.h>
#endif //WIN32 

namespace vpm 
{
	namespace utils
	{

#if defined(WIN32)
typedef DWORD ThreadId;
#else 
typedef int ThreadId;
#endif 
		inline ThreadId thread_id()
		{
		#if defined(WIN32)
			return ::GetCurrentThreadId(); 
		#else 	
			return pthread_self(); 
		#endif //
		}

	}
}
#endif // 
  
